package com.huiyun.project.im.core.mapper;

import com.huiyun.project.im.entity.ImApp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huiyun.project.im.common.auth.AppPrincipal;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * IM应用组 Mapper 接口
 * </p>
 *
 * @author bogon
 * @since 2020-07-17
 */
public interface ImAppMapper extends BaseMapper<ImApp> {
    /**
     * 根据服务商信息以及app信息查询app
     *
     * @return
     */
    ImApp findImApp(Map<String, Object> params);


    /**
     * 登陆后获取app的信息
     * @param uid
     * @return
     */
    AppPrincipal findPrincipal(@Param("userId") String uid);
}
